/**
 * 文件名：ResRequest.java
 * 版权： 航天恒星科技有限公司
 * 描述：〈描述〉
 * 修改时间：2019年4月20日
 * 修改内容：〈修改内容〉
 */
package com.zmkm.project.dbserver.entity;

import org.mockito.internal.util.StringUtil;

import com.zmkm.project.dbserver.utils.StringUtils;

public class ResRequest implements Comparable<ResRequest> {
    private String requestId;
    
    private String wtCode;
    
    private String resCode;
    
    private String trailStatus;
    
    public int weight;
    
    public ResRequest(String wtCode, int weight) {
        this.wtCode = wtCode;
        this.weight = weight;
        requestId = StringUtils.createUUID();
    }
    
    public String getWtCode() {
        return wtCode;
    }
    
    public String getResCode() {
        return resCode;
    }
    
    public String getTrailStatus() {
        return trailStatus;
    }
    
    public void setWtCode(String wtCode) {
        this.wtCode = wtCode;
    }
    
    public void setResCode(String resCode) {
        this.resCode = resCode;
    }
    
    public void setTrailStatus(String trailStatus) {
        this.trailStatus = trailStatus;
    }
    
    @Override
    public int compareTo(ResRequest o) {
        return this.weight > o.weight ? 1 : this.weight < o.weight ? -1 : 0;
    }
    
    public String getRequestId() {
        return requestId;
    }
}
